Omit option details from event_description of WebsiteAgent.

Akinori MUSHA 10 years ago
parent
commit
ba7dbceb7a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/models/agents/website_agent.rb

+ 5 - 1
app/models/agents/website_agent.rb

@@ -78,7 +78,11 @@ module Agents
78 78
     MD
79 79
 
80 80
     event_description do
81
-      "Events will have the fields you specified.  Your options look like:\n\n    #{Utils.pretty_print interpolated['extract']}"
81
+      "Events will have the following fields:\n\n    %s" % [
82
+        Utils.pretty_print(Hash[options['extract'].keys.map { |key|
83
+          [key, "..."]
84
+        }])
85
+      ]
82 86
     end
83 87
 
84 88
     def working?